Read an entire bitmap file into memory, returning the
allocated array and filling in the rows and cols variables.
This function combines ppppbbbbmmmm____rrrreeeeaaaaddddppppbbbbmmmmiiiinnnniiiitttt(((()))), ppppbbbbmmmm____aaaallllllllooooccccaaaarrrrrrrraaaayyyy(((())))
and ppppbbbbmmmm____rrrreeeeaaaaddddppppbbbbmmmmrrrroooowwww(((()))).
WWWWRRRRIIIITTTTIIIINNNNGGGG FFFFIIIILLLLEEEESSSS
void pbm_writepbminit( FILE* fp, int cols, int rows, int forceplain )
Write the header for a portable bitmap file. The forceplain
flag forces a plain-format file to be written, as opposed to
a raw-format one.
void pbm_writepbmrow( FILE* fp, bit* bitrow, int cols, int forceplain )
Write a row from a portable bitmap.
void pbm_writepbm( FILE* fp, bit** bits, int cols, int rows, int forceplain )
Write the header and all data for a portable bitmap. This
function combines ppppbbbbmmmm____wwwwrrrriiiitttteeeeppppbbbbmmmmiiiinnnniiiitttt(((()))) and ppppbbbbmmmm____wwwwrrrriiiitttteeeeppppbbbbmmmmrrrroooowwww(((()))).
SSSSEEEEEEEE AAAALLLLSSSSOOOO
libpgm(3), libppm(3), libpnm(3)
AAAAUUUUTTTTHHHHOOOORRRR
Copyright (C) 1989, 1991 by Tony Hansen and Jef Poskanzer.